# AStyle.exe is a code beautifier tool that can auto format the code to the coding guideline
# Please add PathTo\x64debugdlls\ to the system PATH if you haven't done so

# Run AStyle on all .cpp/.h/.cl files in Source folder source controlled by git, excluding Obsolete/ folder 
scriptDir=`pwd`/`dirname $0`
pushd $scriptDir/..
git ls-files |grep -E '\.(h|cpp|cl|cu)$'  | grep -v Obsolete/ | xargs AStyle.exe --options=Scripts/setting.AStyle
popd
